<template>
  <el-dialog title="经济能力" :visible.sync="dialogVisible" width="900px">
    <h2>{{ xxx }}经济能力详情</h2>
    <br>
    <el-row>
      <el-col :span="8">报告生成时间：{{ }}</el-col>
      <el-col :span="8">有效期至：{{ }}</el-col>
      <el-col :span="8">订单ID：{{ }}</el-col>
    </el-row>
    <br>
    <el-row>
      <el-col>
        <div style="text-align:center">
          <el-progress type="circle" :percentage="0"></el-progress>
        </div>
        <div style="padding:10px 0px;text-align:center">注:评分正常正常为 1-10，分数越高，经济能力越高。特殊情况：-1 表示未查得，-99 表示查询异常。</div>
      </el-col>
    </el-row>
    <div slot="footer" class="dialog-footer">
      <el-button type="primary" @click="dialogVisible = false">关闭</el-button>
    </div>
  </el-dialog>
</template>

<script>
import { getBehaviorData } from '@/api/order'
export default {
  props: {
    editItem: {
      type: Object,
      default: () => ({})
    },
  },
  data() {
    return {
      dialogVisible: false,
      cert_name: '',
      start_at: '',
      level: '',
      allData: {}
    }
  },
  watch: {
    dialogVisible(val) {
      if (val) {
        this.$nextTick(() => {
          this.getList()
        })
      }
    }
  },
  methods: {
    getList() {
      let params={
        cert_name:this.editItem.authentic.cert_name,
        mobile:this.editItem.mobile,
        cert_no:this.editItem.authentic.cert_no,
        orderId:this.editItem.id,
      }
      getBehaviorData(params).then(res => {
        console.log(res);
      })
    }
  }
}
</script>

<style lang="scss" scoped></style>
